#include "ClientServer.h"


void TaskMsg::serialize(std::stringstream &ss)
{
	Message::serialize(ss);
	task.serialize(ss);
}

void TaskMsg::deSerialize(std::stringstream & ss)
{
	Message::deSerialize(ss);
	task.deSerialize(ss);
}

void TaskRet::serialize(std::stringstream & ss)
{
	Message::serialize(ss);
	taskInfo.serialize(ss);
}

void  TaskRet::deSerialize(std::stringstream & ss)
{
	Message::deSerialize(ss);
	taskInfo.deSerialize(ss);
}

void TaskCheckMsg::serialize(std::stringstream &ss)
{
	Message::serialize(ss);
	ss<<taskId<<" ";
}


void TaskCheckMsg::deSerialize(std::stringstream& ss)
{
	Message::deSerialize(ss);
	ss>>taskId;
}